package com.shengzhe.ostudent.utils;

import com.shengzhe.ostudent.utils.value.UUIDUtils;

public class OsFileUtils {
    public static String getRandomName(String filename) {
        String suffixName = null;

        if (filename != null && filename.contains(".")) {
            suffixName = filename.substring(filename.lastIndexOf("."));
        }

        return UUIDUtils.getUUID() + suffixName;
    }
}
